package impl

import (
	"context"
	"log"

	"gitee.com/qzcsu/go-web-study/grpc/proto/pandago"
)

type PandaGoSrv struct {
	pandago.UnimplementedPandaGoServiceServer
}

func (s *PandaGoSrv) SayHello(ctx context.Context, req *pandago.HelloRequest) (*pandago.HelloReply, error) {
	log.Printf("grpc SayHello 请求参数： ctx: %v, req:%+v\n", ctx, req)
	resp := &pandago.HelloReply{
		Code:    1,
		Message: "成功",
		Data:    req,
	}
	return resp, nil
}
